Skip to content

crypto: the removed-name message tests hold on every clang the CI runs - #22

Merged
pinhopro merged 1 commit into
mainfrom
main-green
Dec 3, 2026
Merged

pinhopro merged 1 commit into
mainfrom
main-green

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Three message tests failed on Clang 18 and Apple Clang 17 in webcpp's main CI (run 47012218351). Their -verify expectations held what only Clang 22 reports.

  • ph_removed: Clang 22 corrects ::begin to std::begin and then reports the failed call of that correction. Clang 18 and Apple Clang 17 do not report it. That knock-on is now 0-1.
  • async_seal_removed: clang's "did you mean" is its typo correction, and it differs by version. Clang 18 and Apple Clang 17 offer secret_key_encryption::aead::async_seal/async_open (the right forms) and compile the corrected calls. Clang 22 offers the box forms and adds one failed call each. The test now pins the missing name, and the knock-on is 0-1. The program also links gcm-default, as a real caller would: without it, the corrected calls hit the engine's not-linked static_assert and the errors after it.
  • seal_removed_call: Clang 18 and Apple Clang 17 correct the calls to aead::seal/open, which instantiated ChaCha20-Poly1305's engine on an unlinked default. The program now links chacha20_poly1305-default.

The page's fix note for async_seal_removed now says which clang offers which form (crypto.json; messages.adoc regenerated). generate.py reads a directive's range of counts (1+, 0-1). generate_test.py now runs four cases it declared but never listed, including a new one for ranges.

Other message tests: CI already runs every one on Clang 18 and 22, Apple Clang 17 and wasi-sdk. I also ran the whole test/messages directory through b2 on Clang 18 (Linux) and on Apple Clang 21 (an intermediate version), and the three changed tests on wasip2. All pass, so no other test depends on one clang's typo correction or recovery.

Verified: b2 libs/crypto/test/messages with clang-18 (all pass), with Apple Clang 21 (all pass), the three affected tests on wasip2, -verify of the three with Clang 22.1.2, generate_test.py, generate.py --check, and the lint.

🤖 Generated with Claude Code

ph_removed, async_seal_removed and seal_removed_call failed on Clang 18 and Apple Clang 17
(webcpp run 47012218351): their -verify directives held what Clang 22 alone reports.

- ph_removed: Clang 22 corrects ::begin to std::begin and adds the failed call of the correction;
  Clang 18 and Apple Clang 17 do not. That knock-on is now 0-1.
- async_seal_removed: clang's "did you mean" after the removed name is its typo correction, which
  differs by version: Clang 18 and Apple Clang 17 offer secret_key_encryption::aead::async_seal
  and async_open, the right forms, and compile the corrected calls; Clang 22 offers the box forms
  and adds a failed call each. The test pins the missing name, the knock-on is 0-1, and the program
  links AES-GCM's default backend, as a program that calls it does: unlinked, the corrected calls
  instantiated the engine and stopped at its not-linked static_assert and the errors after it.
- seal_removed_call: Clang 18 and Apple Clang 17 correct the calls to aead::seal and open, which
  instantiated ChaCha20-Poly1305's engine on an unlinked default; the program links it.

The page's fix of async_seal_removed says which clang offers which form. generate.py reads a
directive's range of counts (1+, 0-1), and generate_test.py runs the four cases it declared but did
not list, the new one among them.
@pinhopro
pinhopro merged commit c3c584b into main Dec 3, 2026
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant